<template>
    <div>
        <!-- 处理标题和图标 -->
       <div class="title">
        <div class="icon"></div>
        <div class="text">
            {{title}}
         </div>
       </div>
    </div>
</template>
<script>
   export default{
    //2.子组件接受父组件传递数据 
       props:['title']
   }
</script>
<style lang="less" scoped>
    .title{
        display:flex;
        .icon{
            width: 24px;
            height:30px;
            background-image: url(../../assets/icons/box_title_icon.png);
            background-size: 100% 100%;
        }
        .text{
            color: white;
            margin-left: 10px;
            font-size: 22px;
            font-family: "楷体";
        }
    }
</style>